using System.Windows;

namespace WPFTemplateLib.Attached
{
	public class ScrollViewerAttached
	{
		#region [附加属性] 垂直滚动条是否在左边
		public static bool GetIsVerticalScrollBarAtLeft(DependencyObject obj)
		{
			return (bool)obj.GetValue(IsVerticalScrollBarAtLeftProperty);
		}
		/// <summary>
		/// 设置 垂直滚动条是否在左边
		/// </summary>
		public static void SetIsVerticalScrollBarAtLeft(DependencyObject obj, bool value)
		{
			obj.SetValue(IsVerticalScrollBarAtLeftProperty, value);
		}
		/// <summary>
		/// [附加属性] 垂直滚动条是否在左边
		/// </summary>
		public static readonly DependencyProperty IsVerticalScrollBarAtLeftProperty =
			DependencyProperty.RegisterAttached("IsVerticalScrollBarAtLeft", typeof(bool), typeof(ScrollViewerAttached), 
				new FrameworkPropertyMetadata(false, FrameworkPropertyMetadataOptions.Inherits));
		#endregion
	}
}
